<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="sec"
	uri="http://www.springframework.org/security/tags"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<sec:authentication property="principal" var="currentPrincipal"
	scope="page" />

<fmt:setBundle basename="ApplicationMessage" />
<fmt:setLocale value="zh_CN" />

<!DOCTYPE html>
<html lang="zh-CN">
<head>

<%@ include file="/WEB-INF/include/meta.jsp"%>
<%@ include file="/WEB-INF/include/css.jsp"%>

</head>

<body class="ms-theme-blue">

	<%@ include file="/WEB-INF/include/header.jsp"%>
	<%@ include file="/WEB-INF/include/submenu.jsp"%>

	<div class="container-fluid ms-container has-ms-sidemenu">

		<ol class="ms-breadcrumb breadcrumb">
			<li class="active">基础数据&nbsp;&nbsp;-&nbsp;&nbsp;门店详情</li>
			<a class="pull-right" href="${ctx.host}/stores/${location.id}/edit"
				data-target="#edit" data-toggle="modal">修改基本信息</a>
		</ol>

		<div class="ms-content-layout ">

			<div class="form-horizontal ms-form form-personal-info">

				<div class="form-group ms-form-group">
					<label class="control-label col-xs-2" style="width: 12%;">名称：</label>
					<div class="col-xs-2">
						<p class="form-control-static">${location.name}</p>
					</div>
                    <label class="control-label col-xs-2" style="width: 12%;">是否热门：</label>
                    <div class="col-xs-2">
                        <p class="form-control-static">${location.hot ? '是' : '否'}</p>
                    </div>
				</div>

				<div class="form-group ms-form-group">
					<label class="control-label col-xs-2" style="width: 12%;">所属城市：</label>
					<div class="col-xs-2">
						<p class="form-control-static">${location.cityName}</p>
					</div>
					<label class="control-label col-xs-2" style="width: 12%;">所属国家：</label>
					<div class="col-xs-2">
						<p class="form-control-static">${persist.country(location.country).chineseName}</p>
					</div>
				</div>

				<div class="form-group ms-form-group">
					<label class="control-label col-xs-2" style="width: 12%;">代码：</label>
					<div class="col-xs-2">
						<p class="form-control-static">${location.code}</p>
					</div>
					<label class="control-label col-xs-2" style="width: 12%;">电话：</label>
					<div class="col-xs-2">
						<p class="form-control-static">${location.phone}</p>
					</div>
				</div>

				<div class="form-group ms-form-group">
					<label class="control-label col-xs-2" style="width: 12%;">门店地址1：</label>
					<div class="col-xs-2">
						<p class="form-control-static">${location.addressOne}</p>
					</div>
					<label class="control-label col-xs-2" style="width: 12%;">门店地址2：</label>
					<div class="col-xs-2">
						<p class="form-control-static">${location.addressTwo}</p>
					</div>
				</div>

				<div class="form-group ms-form-group">
					<label class="control-label col-xs-2" style="width: 12%;">是否机场：</label>
					<div class="col-xs-2">
						<p class="form-control-static">${location.airportIndicator ? '是' : '否'}</p>
					</div>
					<label class="control-label col-xs-2" style="width: 12%;">是否火车站：</label>
					<div class="col-xs-2">
						<p class="form-control-static">${location.trainStation ? '是' : '否'}</p>
					</div>
				</div>

				<div class="form-group ms-form-group">
					<label class="control-label col-xs-2" style="width: 12%;">经度：</label>
					<div class="col-xs-2">
						<p class="form-control-static">${location.longtitude}</p>
					</div>
					<label class="control-label col-xs-2" style="width: 12%;">纬度：</label>
					<div class="col-xs-2">
						<p class="form-control-static">${location.latitude}</p>
					</div>
				</div>

				<div class="form-group ms-form-group">
					<label class="control-label col-xs-2" style="width: 12%;">营业时间：</label>
					<div class="col-xs-3">
						<p class="form-control-static">
							周日：${location.branchOpenSun}-${location.branchCloseSun} <br>周一：${location.branchOpenMon}-${location.branchCloseMon}
							<br>周二：${location.branchOpenTue}-${location.branchCloseTue}
							<br>周三：${location.branchOpenWed}-${location.branchCloseWed}
							<br>周四：${location.branchOpenThu}-${location.branchCloseThu}
							<br>周五：${location.branchOpenFri}-${location.branchCloseFri}
							<br>周六：${location.branchOpenSat}-${location.branchCloseSat}
						</p>
					</div>
				</div>

			</div>

		</div>
	</div>
	<%@ include file="/WEB-INF/include/script.jsp"%>
	<d:resource type="script" root="${ctx.resource}/build"
		src="js/page/data/location-view.js" />
	<script type="text/javascript">
     require(['page/data/location-view'], function (page) {
       page.init()
     })
  </script>

</body>
</html>